/*
 * Copyright (c) 2007 The Trustees of Indiana University. All rights reserved.
 * IU CSCI B534 Distributed Systems 2007-02-01 http://www.cs.indiana.edu/classes/b534
 */

package edu.indiana.cs.b534.torrent.message;

import java.io.UnsupportedEncodingException;


public interface TrackerRequest {
	public static final String STARTED = "started";
	public static final String COMPLETED = "completed";
	public static final String STOPPED = "stopped";
	public static final String EMPTY = null;
	
    public byte[] getInfoHash();
    public String getPeerId();
    public String getIp();
    public int getPort();
    public int getUploaded();
    public int getDownloaded();
    public int getLeft();
    public String getEvent();

    public void setInfoHash(byte[] infoHash);
    public void setPeerId(String peerId_);
    public void setIp(String ip_);
    public void setPort(int port_);
    public void setUploaded(int uploaded_);
    public void setDownloaded(int downloaded_);
    public void setLeft(int left_);
    public void setEvent(String event_);

    public String getQueryString() throws UnsupportedEncodingException;
}
